package com.hundsun.cprs.yyt.service.match.core.command;

import java.util.concurrent.Executor;
import com.hundsun.cprs.yyt.service.match.core.Matching;
import com.hundsun.cprs.yyt.service.match.domain.TradeEntrust;

public class ListingEntrustCommand extends BaseCommand {
	
	protected TradeEntrust entrust;
	
	public ListingEntrustCommand(TradeEntrust entrust){
		this.entrust = entrust;
	}
	
    @Override
    public void perform(Matching matching, Executor executor) {
        matching.getSellQueue().placeEntrust(entrust);
        System.out.println("委卖成功....");
    }
}
